#include "ourhdr.h"

Wall::Wall(const Map &map){
	for(int i = 0; i < Pos::max_row; i++){
		for(int j = 0; j < words; j++){
			unsigned temp = map[i][j];
			int k = 0;
			while(temp){
				int lsb = temp % 2;
				if(lsb){
					add(Pixel(i, j*wordlength + k, 'X'));
				}
				k++;
				temp /= 2;
			}
		}
	}
}
